import request from '../../../utils/request';

//查询所有角色
export const getOrgans = query => {
    return request({
        url: '/api/upp/organ/doMain',
        method: 'post',
        params: query
    });
};

export const doAdd = query => {
    return request({
        url: '/api/upp/organ/doAdd',
        method: 'post',
        data: query
    });
};

export const doUpdate = query => {
    return request({
        url: '/api/upp/organ/doUpdate',
        method: 'post',
        data: query
    });
};

export const doDelete = query => {
    return request({
        url: '/api/upp/organ/doDelete',
        method: 'delete',
        params: query
    });
};
